package com.yc.txx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 天下行租车-用车表-10
 * </p>
 *
 * @author xl
 * @since 2024-05-07
 */
@TableName("txx_lease")
@Data
public class Lease implements Serializable {

    private static final long serialVersionUID = 1L;

      /**
     * 编号
     */
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      /**
     * 车辆ID
     */
      private Integer cid;

      /**
     * 用户ID
     */
      private Integer uid;

      /**
     * 订单时间
     */
      private LocalDateTime orderTime;

      /**
     * 提车时间
     */
      private LocalDateTime outTime;

      /**
     * 还车时间
     */
      private LocalDateTime backTime;

      /**
     * 借出日期: 2023-01-01,2023-01-02
     */
      private String days;

      /**
     * 金额
     */
      private Long money;

      /**
     * 状态: 支付,提车,还车
     */
      private String state;

      /**
     * 备注: 车辆是否损坏, 赔偿情况...
     */
      private String remark;


  @TableField(exist = false)
  private List<Car> car;

}
